<include file="public@header"/>
</head>
<body>
<div class="lyear-layout-web">
    <div class="lyear-layout-container">
        <!--页面主要内容-->
        <main class="lyear-layout-content">
          
            <div class="container-fluid">
            
                <div class="row">
                   <div class="col-md-12">
                        <div class="card">
                            <ul class="nav nav-tabs">
                                <li class="active"><a>所有钩子</a></li>
                                <li><a href="{:url('Hook/sync')}">同步钩子</a></li>
                            </ul>
                            <div class="card-body">
                              <form action="" method="post" class="margin-top-20">
                                  <php>
                                      $types = ["1"=>'系统钩子','2'=>'应用钩子','3'=>'模板钩子','4'=>'后台模板钩子'];
                                  </php>
                                  <div class="table-responsive">
                                      <table class="table table-hover">
                                        <thead>
                                        <tr>
                                            <th width="40">ID</th>
                                            <th>名称</th>
                                            <th>类型</th>
                                            <th>描述</th>
                                            <th width="150">{:lang('ACTIONS')}</th>
                                        </tr>
                                        </thead>
                                        <tbody>
                                        <foreach name="hooks" item="vo">
                                            <tr>
                                                <td>{$vo.id}</td>
                                                <td>{$vo.name}:{$vo.hook}</td>
                                                <td>{$types[$vo.type]}</td>
                                                <td>{$vo.description}</td>
                                                <td>
                                                    <a class="btn btn-xs btn-primary"
                                                       href="javascript:parent.openIframeLayer('{:url('Hook/plugins',['hook'=>$vo['hook']])}','钩子{$vo.name}插件管理',{});">管理插件</a>
                                                </td>
                                            </tr>
                                        </foreach>
                                        </tbody>
                                    </table>
                                  </div>
                              </form>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </main>
    </div>
</div>
<script src="__TMPL__/public/assets/js/admin.js"></script>
</body>
</html>